//////////////////////////////////////////////////////////////////////////
//					Character Animation with Direct3D					//
//						   Author: C. Granberg							//
//							   2008 - 2009								//
//////////////////////////////////////////////////////////////////////////

#ifndef ORIENTED_BBOX
#define ORIENTED_BBOX

#include "Game Engine/Header/d3dUtil.h"
#include "btBulletDynamicsCommon.h"
#include "Game Engine/Header/Box.h"
#include "Game Engine/Header/Mesh.h"

using namespace std;

class OBB
{
public:
	OBB( D3DXVECTOR3 pos, D3DXVECTOR3 size, bool dynamic=true );
	~OBB();
	void Release();
	void Render( Mesh& mesh, D3DXMATRIX& lightViewProj );

public:
	btRigidBody *mBody;

private:
	ID3DX10Mesh* mMeshData;
};

#endif